#include "viewport.h"
#include "../window.h"

void
e3dViewport::Resize (int width, int height)
{
  _width  = width;
  _height = height;
}

void
e3dViewport::Resize (const eRect& rect)
{
  _x = rect.left;
  _y = rect.top;

  int width  = (rect.right - rect.left);
  int height = (rect.bottom - rect.top);

  Resize (width, height);
}
